package com.ccrfid.rmc6.resource.dbg;

import com.ccrfid.rmc6.lbservice3.client.WebClient;
import com.ccrfid.rmc6.lbservice3.manager.ClientManager;
import org.springframework.beans.factory.annotation.Autowired;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.Map;

@Path("dbg")
@Produces(MediaType.APPLICATION_JSON)
public class WebClientDebugResource {
    @Autowired
    private ClientManager clientManager;

    @GET
    @Path("web-client/id-map")
    public Map<String, WebClient> getWebClientMap() {
        return clientManager.getWebClientMap();
    }

}
